﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/Clancy.Data" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Clancy.Data" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:import namespace="http://schemas.datacontract.org/2004/07/System.Drawing" />
  <xs:complexType name="ArrayOfRecordingItem">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="RecordingItem" nillable="true" type="tns:RecordingItem" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfRecordingItem" nillable="true" type="tns:ArrayOfRecordingItem" />
  <xs:complexType name="RecordingItem">
    <xs:sequence>
      <xs:element minOccurs="0" name="Duration" type="ser:duration" />
      <xs:element minOccurs="0" name="FilePath" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="SurveilanceGuid" type="ser:guid" />
      <xs:element minOccurs="0" name="Timestamp" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="RecordingItem" nillable="true" type="tns:RecordingItem" />
  <xs:complexType name="SurveilanceObject">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:BaseDataContainer">
        <xs:sequence>
          <xs:element minOccurs="0" name="AlarmDelayTime" type="ser:duration" />
          <xs:element minOccurs="0" name="AlarmDelayTimeXml" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="FlipX" type="xs:boolean" />
          <xs:element minOccurs="0" name="FlipY" type="xs:boolean" />
          <xs:element minOccurs="0" name="Framerate" type="xs:int" />
          <xs:element minOccurs="0" name="Id" type="ser:guid" />
          <xs:element minOccurs="0" name="MaxRecordDuration" type="ser:duration" />
          <xs:element minOccurs="0" name="MaxRecordDurationXml" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="MonikerString" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="MotionDetectionEnabled" type="xs:boolean" />
          <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/System.Drawing" minOccurs="0" name="MotionZones" nillable="true" type="q1:ArrayOfRectangle" />
          <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="PrefetchTime" type="ser:duration" />
          <xs:element minOccurs="0" name="PrefetchTimeXml" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="RecordBaseDirectory" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="RenderTimestamp" type="xs:boolean" />
          <xs:element minOccurs="0" name="RotateAngle" type="xs:int" />
          <xs:element minOccurs="0" name="StartupBlindTime" type="xs:int" />
          <xs:element minOccurs="0" name="Threshold" type="xs:int" />
          <xs:element minOccurs="0" name="VideoSourceName" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="SurveilanceObject" nillable="true" type="tns:SurveilanceObject" />
  <xs:complexType name="BaseDataContainer">
    <xs:sequence />
  </xs:complexType>
  <xs:element name="BaseDataContainer" nillable="true" type="tns:BaseDataContainer" />
  <xs:complexType name="SurveilanceResultFrame">
    <xs:sequence>
      <xs:element minOccurs="0" name="AlarmTriggered" type="xs:boolean" />
      <xs:element minOccurs="0" name="Frame" nillable="true" type="xs:base64Binary" />
      <xs:element minOccurs="0" name="FrameDifference" type="xs:float" />
      <xs:element minOccurs="0" name="FramesPerSecond" type="xs:double" />
      <xs:element minOccurs="0" name="Recording" type="xs:boolean" />
      <xs:element minOccurs="0" name="Timestamp" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SurveilanceResultFrame" nillable="true" type="tns:SurveilanceResultFrame" />
</xs:schema>